﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop;
using System.Diagnostics;
using log4net;
using log4net.Config;
using Excel = Microsoft.Office.Interop.Excel; 

namespace ExcelReportGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
			log4net.Config.XmlConfigurator.Configure();

			// Create a logger
			ILog log = LogManager.GetLogger(typeof(Program));

            log4net.Config.BasicConfigurator.Configure();

            log.Debug("Excel Report Generator is started");
            log.Debug("Current directory " + Directory.GetCurrentDirectory());

            ExcelApp excelApp = new ExcelApp();
            excelApp.start();

            log.Debug("Excel Report Generator is ended");


            //Debug.WriteLine("");
            //Console.Write("Press Enter to exit...");
            //Console.ReadLine();
        }
    }
}
